package com.xiaocheng.core.strategy.outport;


import org.junit.Test;

import com.xiaocheng.core.strategy.conf.PayMap;
import com.xiaocheng.core.strategy.conf.PayMethod;
import com.xiaocheng.core.strategy.interfaces.PayInterface;
import com.xiaocheng.core.strategy.pojo.Cent;
/**
 * 
* @ClassName: RealPayTest 
* @Description: 策略模式测试类
* @author 高亚鹏
* @date 2018年5月11日 下午11:42:10 
*
 */
public class RealPayTest {

	@Test
	public void test() throws InstantiationException, IllegalAccessException {
		PayInterface payInterface = PayMap.getPaytype(PayMethod.WXPAY.getName());
		RealPay realPay = new RealPay(payInterface);
		Cent cent = new Cent();
		realPay.pay(cent);
	}

}
